#include<iostream>
#include"queueMy.h"
using namespace std;
using ForcibleBugMaker::queue;

int main()
{
	queue<int> q;
	q.push(1);
	q.push(2);
	q.push(3);
	q.push(4);
	while (!q.empty()) {
		cout << q.front() << " " << q.back() << endl;
		q.pop();
	}
	cout << endl;

	return 0;
}